//properties settings for radio
fmdmeta_prop.control.checkboxgroup = {
		//group for element list - basic/composite/custom/extended
		"group" : "basic",
		//control category
		"controlcategory" : "datacontrol",
		//i18n type name
		"i18ntype" : fmd_i18n_el_checkboxgroup,
		//icon in element list, located in images/designer/modules/
		"icon" : "elem_checkboxgroup.png",
		//html code for dragging
		//innerhtml_dragging : '<label class="title">'+fmd_i18n_untitled+'</label><div class="column column1"><input type="checkbox" name="checkbox[]" value="options 1"/ ><span>options 1</span><br/><input type="checkbox" name="checkbox[]" value="options 2"/ ><span>options 2</span><br/><input type="checkbox" name="checkbox[]" value="options 3"/ ><span>options 3</span><br/></div><span class="clearfix"></span>',
		//html code after dropped
		//innerhtml_dropped : '<label class="title">'+fmd_i18n_untitled+'</label><div class="column column1"><input type="checkbox" name="checkbox[]" value="options 1"/ ><span>options 1</span><br/><input type="checkbox" name="checkbox[]" value="options 2"/ ><span>options 2</span><br/><input type="checkbox" name="checkbox[]" value="options 3"/ ><span>options 3</span><br/></div><span class="clearfix"></span>',
		//html code for dragging
		innerhtml_dragging : '<label class="title">'+fmd_i18n_untitled+'</label>'+
			'<div style="*display:inline;min-width:10em;padding:0.7em 0.3em 0.7em 0.3em;"><input type="checkbox" value="0" style="display:inline;"/>'+
			'<span style="margin-left:2em;">Option 1</span>'+
			'<input type="checkbox" value="0" style="display:inline;"/>'+
			'<span style="margin-left:2em;">Option 2</span>'+
			'<input type="checkbox" value="0" style="display:inline;"/>'+
			'<span style="margin-left:2em;">Option 3</span>'+
			'<br/></div>',
		//html code after dropped
		innerhtml_dropped : '<label class="title">'+fmd_i18n_untitled+'</label>'+
			'<div style="*display:inline;min-width:10em;padding:0.7em 0.3em 0.7em 0.3em;"><input type="checkbox" value="0" style="display:inline;"/>'+
			'<span style="margin-left:2em;">Option 1</span>'+
			'<input type="checkbox" value="0" style="display:inline;"/>'+
			'<span style="margin-left:2em;">Option 2</span>'+
			'<input type="checkbox" value="0" style="display:inline;"/>'+
			'<span style="margin-left:2em;">Option 3</span>'+
			'<br/></div>',
		"includes-properties" : {
			"common" : fmdmeta_prop.common.all.properties,
			"controlcommon" : fmdmeta_prop.common.datacontrol.properties
		},
		"properties" : {
			"i18ntype" : {
		    	"name" : fmd_i18n_prop_selectiontype,
		    	"img" : "selection.png",
		    	"cellType" : "ro",
		    	"value" : {"default":fmd_i18n_el_checkboxgroup},
		    	"displayOnly" : true,
		    	"afterProperty" : "id"
		    },
		    "databinding" : {
		    	"name" : fmd_i18n_prop_binding,
		    	"img" : "databinding.png",
		    	"cellType" : {
					"type" : "coro",
					"options":"fmdmeta_prop.model_binding_list" //initialized later, so use a reference here, call eval when use
			    },
			    "value" : {"default":""},
		    	"validator" : "NotEmpty"
		    },
		    /*"processbinding" : {
		    	"name" : fmd_i18n_prop_pbinding,
		    	"img" : "processbinding.png",
		    	"cellType" : "processbinding"
		    },*/
		    "validation-value" : {
		    	"name" : fmd_i18n_prop_valuevalidation,
		    	"img" : "validation.png",
			    "cellType" : "ace_validation",
			    "arguments" : {
					"v" : fmd_i18n_modules.checkboxgroup.value
				},
				"params" : {
					"require" : "databinding",
					"inputindex" : 0	//input index for validation in this component, starts from 0
				},
			    "value" : {"default":""}
		    },
		    "dataprovider" : {
		    	"name" : fmd_i18n_prop_dataprovider,
		    	"img" : "dataprovider.png",
			    "cellType" : {
					"type" : "coro",
					"options":[["dataprovider-dict", fmd_i18n_prop_dict],
	        					["dataprovider-restsrv", fmd_i18n_prop_restsrv]
	        	                ]
			    },
			    "validator" : "NotEmpty",
				"conditional-sub" : {
					"dataprovider-dict" : {
						"dataprovider-dict" : {
							"name" : fmd_i18n_prop_dict,
							"cellType" : {
    	    					"type" : "btnex",
    	    					"config" : {
    	    						"displayValue" : "displayValue",
    	    	    				"onclick" : fmdmeta_prop.func.selectDict
    	    	    			}
    	    				},
							"validator" : "NotEmptyObject"
						}
				    },
				    "dataprovider-restsrv" : {
						"dataprovider-restsrv" : {
							"name" : fmd_i18n_prop_restsrv,
							"cellType" : {
    	    					"type" : "btnex",
    	    					"config" : {
    	    						"displayValue" : "displayValue",
    	    	    				"onclick" : fmdmeta_prop.func.selectService
    	    	    			}
    	    				},
							"validator" : "NotEmptyObject"
						}
				    }
				},
			    "value" : {"default":"dataprovider-dict"}
		    }
		},
		"abandon-properties" : ["valueValidation"],
		"includes-events" : {
			"common" : fmdmeta_prop.common.all.events,
			"controlcommon" : fmdmeta_prop.common.datacontrol.events
		},
		"events" : {
			
		},
		"onApply" : function() {
			
		},
		"propDhxGridEvents" : {
			"onEditCell" : function(stage,rId,cId,nv,ov) {
				return true;
			},
			"onCellChanged" : function(rId,cId,nv) {
				if (nv && cId==fmdmeta_prop.gridconf.idx.value) {
					if (rId=='dataprovider') {
						//fmdpf_showConditionalSub(rId, nv, fmdmeta_prop.control.checkboxgroup.properties[rId]);
					} else if (rId=='databinding') {
						var vals = nv.split(".");
						if (vals && vals.length==2) {
							if (fmdc.models[vals[0]] && fmdc.models[vals[0]].attrs[vals[1]]) {
								if (this.doesRowExist("i18nname-zh")) {
									var zh = this.cells("i18nname-zh", cId).getValue();
									if (!zh || zh==fmd_i18n_untitled) this.cells("i18nname-zh", cId).setValue(fmdc.models[vals[0]].attrs[vals[1]].desc_zh);
								}
								if (this.doesRowExist("i18nname-en")) {
									var en = this.cells("i18nname-en", cId).getValue();
									if (!en || en=='Untitled') this.cells("i18nname-en", cId).setValue(fmdc.models[vals[0]].attrs[vals[1]].desc_en);
								}
							} else {
								this.cells(rId,cId).setValue('');
							}
						}
					}
				}
			}
		}
	};